<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="../lib/OSL/layui/css/layui.css">
    <link rel="stylesheet" href="../lib/css/page/lab_appointment_manage.css">
</head>

<body>
    <div class="layui-card">
        <div class="layui-card-header">
            <span>停水停电通知信息</span>
        </div>
        <!-- 卡片区域  -->
        <div class="layui-card-body">
            <!-- 搜索区域   -->
            <form class="layui-form" id="form_search">
                <div class="layui-form-item layui-inline">
                    <label class="layui-form-label">通知内容</label>
                    <div class="layui-input-block">
                        <input type="text" name="text" placeholder="请输入通知名称" autocomplete="off"
                            class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item layui-inline">
                    <label class="layui-form-label">通知时间</label>
                    <div class="layui-input-block">
                        <input type="text" name="publish_time" placeholder="请输入通知时间" autocomplete="off"
                            class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item layui-inline">
                    <div style="margin-left: 10px;">
                        <button class="layui-btn btn_search" lay-submit lay-filter="formDemo">搜索</button>
                        <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                    </div>
                </div>
            </form>
            <!-- //数据区 -->
            <table class="layui-table">
                <colgroup>
                    <col />
                    <col width="200px"/>
                </colgroup>
                <thead>
                    <tr>
                        <th>通知内容</th>
                        <th>通知时间</th>
                    </tr>
                </thead>
                <tbody>

                </tbody>
            </table>

            <!-- //分页区域 -->
            <div id="pageBox"></div>
        </div>
    </div>
    <!-- ---------------------------------------------------------------- -->

    <!-- ---------------------------------------------------------------- -->
    <script src="../lib/OSL/jquery.js"></script>
    <script src="../lib/OSL/layui/layui.all.js"></script>
    <script src="../lib/js/baseAPI.js"></script>
    <script src="../lib/js/page/notification.js"></script>
    <script src="../lib/OSL/template-web.js"></script>


     <!-- 获取所有用户数据的表格模板 -->
     <script type="text/html" id="tpl-table">
        {{each data}}
        <tr >
            {{if $value.status ==1 && $value.status_or ==2}}
            <td>
                <div class="layui-panel">
                    <div style="padding: 30px;">{{$value.text}}</div>
                </div>       
            </td>
            <td>
                <div class="layui-panel">
                    <div> {{$value.publish_time}}</div>
                </div>    
            </td>
            {{/if}}
        </tr>
        {{/each}}

 
    </script>

</body>

</html>